package com.code.google.mdsc.io.xml;

import java.io.File;

import com.code.google.mdsc.model.Booking;

public interface XMLSepaGenerator {

	/**
	 * Generates and saves a valid XML file with the given information in the
	 * pain.008.002.02 format.
	 * 
	 * @param dest
	 *            the destination to save the XML file. It must not be
	 *            <code>null</code>.
	 * 
	 * @param bookingData
	 *            a {@link Booking} object containing the necessary payment
	 *            informations.
	 * 
	 * @throws XMLGeneratorException
	 *             if something went wrong during the generation process
	 */
	public void generate(File dest, Booking bookingData);
}
